﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.fountain {
    import net.wooga.pets.interfaces.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.models.world.*;

    public class ReactivateFountainActionsCommand extends Command {

        public var world:WorldModel;

        override public function execute():void{
            var _local2:IMachine;
            var _local1:Array = this.world.getRoomIdsOfType(GameConstants.TYPE_FOUNTAIN);
            if (_local1.length){
                _local2 = IRoom(this.world.getRoomById(_local1[0])).machine;
                _local2.actionsActive = true;
            };
        }

    }
}//package net.wooga.pets.controllers.fountain 
